import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
 
export default defineConfig({
	plugins: [
		uni()
	],
	server: {
		proxy: {
			'/api': {
				target: 'https://api.jingzuanhuicui.com/v1', // 目标服务器地址
				// target: 'http://192.168.1.31/\', // 目标服务器地址
				changeOrigin: true,                   // 是否更改请求源
				rewrite: path => path.replace(/^\/api/, '')
			}
		}
	}
})
